home *** CD-ROM | disk | FTP | other *** search
- On Mon, 9 Jan 1995, Christian Mumenthaler wrote:
- >
- > Hello!
- >
- > I have programmed a protein (wire-frame) viewing program
- > and I have experienced the same speed problems as you have.
- > After having optimized the code, I have started to translate
- > some routines in Assembler. Unfortunately, I was quite
- > disappointed at the speed-increase. Excepted a simple
- > Bubblesort routine which I use for a Z-sort and which
- > ran about 40 times faster, the rest did not even run
- > twice as fast as before. I'm not an Assembler expert, but
- > I tried to use registers and keep the data in the cache. I
- > don't believe that a good Assembler programmer would make it
- > run much faster.
- >
- > Anyway, as the program rotates about 550 lines 5 times per
- > second on my A4000/040 and it did maybe 300 lines before
- > I used my Assembler routines, I guess that you could speed
- > up your actual program a lot by simply optimizing it!
- > (An A1200 can't be 15-20 times slower than a A4000, can it?)
- >
- > First, use only interger arithmetics by multiplying all coordinates
- > by 2^x with x being at least 10 (depends on the accuracy needed).
- > Before displaying it on the screen you will have to divide it again by
- > this number, but fortunately both, multiplication and division can
- > be done with the shift operators of AmosPro (Asr.l and Asl.l, I think.
- > I have Amos Creator where they don't exist.)
- > Do also use the commands Add and Sub where possible. They are all
- > translated pretty much 1:1 in Assembler, at least I guess so.
- >
- > Secondly, use the TurboLib extension! The F_draw command is about
- > twice as fast as the AMOS command which makes an enormous speed
- > increase (in the current version of my program, 50% of the time
- > is consumed in the drawing routine!). You can also use the fast
- > command to clear the bitplanes.
- >
- > I have never tested Amos3D, but maybe this could also be of some
- > help? Anyone?
- >
- > Good luck,
- >
- > Chris
- >
- I find that hard to believe that Assembler doesn't make your progs much
- faster. All the programs that I translated from AMOS to BlitzBasic2 are
- at least five times as fast as compiled Amos codes. Assembler should be
- faster than BB2 as well so I think its just your coding.
- BTW, is there a forum like this one for the amazing BlitzBasic?
-
- Chris Wysocki
- Toronto, Canada
-
-